//
//  UINavigationController+Autorotate.m
//  MLX
//
//  Created by SY on 2018/10/5.
//  Copyright © 2018年 SY. All rights reserved.
//

#import "UINavigationController+Autorotate.h"

@implementation UINavigationController (Autorotate)
- (BOOL)shouldAutorotate{
    return [self.topViewController shouldAutorotate];
}
- (NSUInteger)supportedInterfaceOrientations{
    return [self.topViewController supportedInterfaceOrientations];
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
    return [self.topViewController preferredInterfaceOrientationForPresentation];
}
@end
